<?php
	/**
	 * Object representing Metadata, which is composition to the Document (part of the Library table)
	 * 
	 * @author Dragan
	 * @date 2012-06-21
	 */
	class Metadata{
		
		protected $_id;
		protected $_authors;
		protected $_affiliation;
		protected $_title;
		protected $_journal;
		protected $_secondaryTitle;
		protected $_year;
		protected $_volume;
		protected $_issue;
		protected $_pages;
		protected $_abstract;
		protected $_keywords;
		protected $_editor;
		protected $_publisher;
		protected $_placePublished;
		protected $_referenceType;
		protected $_doi;
		protected $_url;
		protected $_rating;
		protected $_autorsAscii;
		protected $_titleAscii;
		protected $_abstractAscii;
		protected $_custom1;
		protected $_custom2;
		protected $_custom3;
		protected $_custom4;
		
		
		/**
		 * Empty constructor
		 */
		public function __construct(){
			//$this->_keywords = array();
			$this->_id = 0;
			$this->_authors = "";
			$this->_affiliation = "";
			$this->_title = "";
			$this->_journal = "";
			$this->_secondaryTitle = "";
			$this->_year = "";
			$this->_volume = "";
			$this->_issue = "";
			$this->_pages = "";
			$this->_abstract = "";
			$this->_keywords = "";
			$this->_editor = "";
			$this->_publisher = "";
			$this->_placePublished = "";
			$this->_referenceType = "";
			$this->_doi = "";
			$this->_url = "";
			$this->_rating = 2;
			$this->_autorsAscii = "";
			$this->_titleAscii = "";
			$this->_abstractAscii = "";
			$this->_custom1 = "";
			$this->_custom2 = "";
			$this->_custom3 = "";
			$this->_custom4 = "";
		}
		
		/**
		 * @return the $_id
		 */
		public function getId() {
			return $this->_id;
		}
		
		/**
		 * @return the $_authors
		 */
		public function getAuthors() {
			return $this->_authors;
		}
		
		
		/**
		 * @return the $_affiliation
		 */
		public function getAffiliation() {
			return $this->_affiliation;
		}
		
		/**
		 * @return the $_title
		 */
		public function getTitle() {
			return $this->_title;
		}
		
		/**
		 * @return the $_journal
		 */
		public function getJournal() {
			return $this->_journal;
		}
		
		/**
		 * @return the $_secondaryTitle
		 */
		public function getSecondaryTitle() {
			return $this->_secondaryTitle;
		}
		
		/**
		 * @return the $_year
		 */
		public function getYear() {
			return $this->_year;
		}
		
		/**
		 * @return the $_volume
		 */
		public function getVolume() {
			return $this->_volume;
		}
		
		/**
		 * @return the $_issue
		 */
		public function getIssue() {
			return $this->_issue;
		}
		
		/**
		 * @return the $_pages
		 */
		public function getPages() {
			return $this->_pages;
		}
		
		/**
		 * @return the $_abstract
		 */
		public function getAbstract() {
			return $this->_abstract;
		}
		
		/**
		 * @return the $_keywords
		 */
		public function getKeywords() {
			return $this->_keywords;
		}
		
		/**
		 * @return the $_editor
		 */
		public function getEditor() {
			return $this->_editor;
		}
		
		/**
		 * @return the $_publisher
		 */
		public function getPublisher() {
			return $this->_publisher;
		}
		
		/**
		 * @return the $_placePublished
		 */
		public function getPlacePublished() {
			return $this->_placePublished;
		}
		
		/**
		 * @return the $_referenceType
		 */
		public function getReferenceType() {
			return $this->_referenceType;
		}
		
		/**
		 * @return the $_doi
		 */
		public function getDoi() {
			return $this->_doi;
		}
		
		/**
		 * @return the $_url
		 */
		public function getUrl() {
			return $this->_url;
		}
		
		/**
		 * @return the $_rating
		 */
		public function getRating() {
			return $this->_rating;
		}
		
		/**
		 * @return the $_autorsAscii
		 */
		public function getAutorsAscii() {
			return $this->_autorsAscii;
		}
		
		/**
		 * @return the $_titleAscii
		 */
		public function getTitleAscii() {
			return $this->_titleAscii;
		}
		
		/**
		 * @return the $_abstractAscii
		 */
		public function getAbstractAscii() {
			return $this->_abstractAscii;
		}
		
		/**
		 * @return the $_custom1
		 */
		public function getCustom1() {
			return $this->_custom1;
		}
		
		/**
		 * @return the $_custom2
		 */
		public function getCustom2() {
			return $this->_custom2;
		}
		
		/**
		 * @return the $_custom3
		 */
		public function getCustom3() {
			return $this->_custom3;
		}
		
		/**
		 * @return the $_custom4
		 */
		public function getCustom4() {
			return $this->_custom4;
		}
		
		
		/**
		 * @param field_type $_id
		 */
		public function setId($_id) {
			$this->_id = $_id;
		}
		
		/**
		 * @param field_type $_authors
		 */
		public function setAuthors($_authors) {
			$this->_authors = $_authors;
		}
		
		/**
		 * @param field_type $_affiliation
		 */
		public function setAffiliation($_affiliation) {
			$this->_affiliation = $_affiliation;
		}
		
		/**
		 * @param field_type $_title
		 */
		public function setTitle($_title) {
			$this->_title = $_title;
		}
		
		/**
		 * @param field_type $_journal
		 */
		public function setJournal($_journal) {
			$this->_journal = $_journal;
		}
		
		/**
		 * @param field_type $_secondaryTitle
		 */
		public function setSecondaryTitle($_secondaryTitle) {
			$this->_secondaryTitle = $_secondaryTitle;
		}
		
		/**
		 * @param field_type $_year
		 */
		public function setYear($_year) {
			$this->_year = $_year;
		}
		
		/**
		 * @param field_type $_volume
		 */
		public function setVolume($_volume) {
			$this->_volume = $_volume;
		}
		
		/**
		 * @param field_type $_issue
		 */
		public function setIssue($_issue) {
			$this->_issue = $_issue;
		}
		
		/**
		 * @param field_type $_pages
		 */
		public function setPages($_pages) {
			$this->_pages = $_pages;
		}
		
		/**
		 * @param field_type $_abstract
		 */
		public function setAbstract($_abstract) {
			$this->_abstract = $_abstract;
		}
		
		/**
		 * @param field_type $_keywords
		 */
		public function setKeywords($_keywords) {
			$this->_keywords = $_keywords;
		}
		
		/**
		 * @param field_type $_editor
		 */
		public function setEditor($_editor) {
			$this->_editor = $_editor;
		}
		
		/**
		 * @param field_type $_publisher
		 */
		public function setPublisher($_publisher) {
			$this->_publisher = $_publisher;
		}
		
		/**
		 * @param field_type $_placePublished
		 */
		public function setPlacePublished($_placePublished) {
			$this->_placePublished = $_placePublished;
		}
		
		/**
		 * @param field_type $_referenceType
		 */
		public function setReferenceType($_referenceType) {
			$this->_referenceType = $_referenceType;
		}
		
		/**
		 * @param field_type $_doi
		 */
		public function setDoi($_doi) {
			$this->_doi = $_doi;
		}
		
		/**
		 * @param field_type $_url
		 */
		public function setUrl($_url) {
			$this->_url = $_url;
		}
		
		/**
		 * @param field_type $_rating
		 */
		public function setRating($_rating) {
			$this->_rating = $_rating;
		}
		
		/**
		 * @param field_type $_autorsAscii
		 */
		public function setAutorsAscii($_autorsAscii) {
			$this->_autorsAscii = $_autorsAscii;
		}
		
		/**
		 * @param field_type $_titleAscii
		 */
		public function setTitleAscii($_titleAscii) {
			$this->_titleAscii = $_titleAscii;
		}
		
		/**
		 * @param field_type $_abstractAscii
		 */
		public function setAbstractAscii($_abstractAscii) {
			$this->_abstractAscii = $_abstractAscii;
		}
		
		/**
		 * @param field_type $_custom1
		 */
		public function setCustom1($_custom1) {
			$this->_custom1 = $_custom1;
		}
		
		/**
		 * @param field_type $_custom2
		 */
		public function setCustom2($_custom2) {
			$this->_custom2 = $_custom2;
		}
		
		/**
		 * @param field_type $_custom3
		 */
		public function setCustom3($_custom3) {
			$this->_custom3 = $_custom3;
		}
		
		/**
		 * @param field_type $_custom4
		 */
		public function setCustom4($_custom4) {
			$this->_custom4 = $_custom4;
		}
		
	}
	
?>